<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>『后台管理平台』By ThinkPHP <?php echo (THINK_VERSION) ?></TITLE>
<link rel='stylesheet' type='text/css' href='/One/Tpl/default/Public/Css/style.css' />
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Common.js'></script> 
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Base.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/prototype.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/mootools.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Ajax/ThinkAjax.js'></script>  
<script type='text/javascript' src='/One/Tpl/default/Public/Js/Form/CheckForm.js'></script>  
<SCRIPT LANGUAGE="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '/News';
var APP	 =	 '';
var PUBLIC = '/Public';
//ThinkAjax.debug = true;
ThinkAjax.updateTip = '<IMG SRC="/One/Tpl/default/Public/images/loading2.gif" WIDTH="16" HEIGHT="16" BORDER="0" ALT="loading..." align="absmiddle"> 数据处理中...';
//-->
</SCRIPT>
</HEAD>

<body>
<!-- 主体内容  -->
<div id="main" class="main" >
<div class="content" >
<div class="title">新闻分类列表</div>
<!--  功能操作区域  -->
<div class="operate" width="100%">
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="addcategory" value="新增" onclick="addcategory()" class="addcategory imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="edit" value="编辑" onclick="edit()" class="edit imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="delete" value="删除" onclick="del()" class="delete imgButton"></div>
<div class="impBtn hMargin fLeft shadow" ><input type="button" id="" name="sort" value="排序" onclick="location.href='/News/sort/'" class="sort imgButton"></div>
</div>
<!-- 功能操作区域结束 -->
<p>&nbsp;</p>
<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div>
<!-- Think 系统列表组件开始 -->
<table id="checkList" class="list" cellpadding=0 cellspacing=0 >
<tr><td height="5" colspan="6" class="topTd" ></td></tr>
<tr class="row" >
<th width="8"><input type="checkbox" id="check" onclick="CheckAll('checkList')"></th>
<th width="10%">编号</th>
	<th>名称</th>
	<th>说明</th>
	<th>状态</th>
	<th>操作</th>
</tr>
<?php if(is_array($list)): ?><?php $i = 0; ?><?php if( count($list)==0 ) : echo "" ; ?><?php else: ?><?php foreach($list as $key=>$vo): ?><?php ++$i;?><?php $mod = (($i % 2 )==0)?><tr class="row" onmouseover="over()" onmouseout="out()" onclick="change()" >
<td><input type="checkbox" name="key"	value="2"></td>
<td><?php echo (is_array($vo)?$vo["id"]:$vo->id) ?></td>
<td><a href="/News/Category/pid/<?php echo (is_array($vo)?$vo["id"]:$vo->id) ?>"><?php echo (is_array($vo)?$vo["name"]:$vo->name) ?></a></td><td><?php echo (is_array($vo)?$vo["remark"]:$vo->remark) ?></td>
<td><?php if((is_array($vo)?$vo["status"]:$vo->status)  ==  "1"): ?><span style='color:blue'>启用</span><?php endif; ?><?php if(($$vo->status)  ==  "0"): ?>禁用<?php endif; ?></td>
<td><a href="javascript:editcategory('<?php echo (is_array($vo)?$vo["id"]:$vo->id) ?>')">编辑</a> 
<a  onclick="if(confirm('确认要删除该分类?')) self.location.href=('/News/deletecategory/id/<?php echo (is_array($vo)?$vo["id"]:$vo->id) ?>');"  href="/News/category/">删除</a></td></tr><?php endforeach; ?><?php endif; ?><?php endif; ?>
<tr><td height="5" colspan="6" class="bottomTd"></td></tr></table>

</div>

<!--  分页显示区域 -->
<div class="page"><?php echo ($page) ?></div>
<!-- 列表显示区域结束 -->
</div>
</div>
<!-- 主页面结束 -->
</BODY>
</HTML>